package com.it.ems.service;

import com.it.ems.entity.ExpressOrder;
import java.util.List;

public interface ExpressOrderService {
    ExpressOrder findById(Long id);
    
    List<ExpressOrder> findByUserId(Long userId);
    
    List<ExpressOrder> findByOrderNumber(String orderNumber);
    
    boolean save(ExpressOrder order);
    
    boolean update(ExpressOrder order);
    
    boolean delete(Long id);
    
    boolean deleteByUserId(Long userId);

    List<ExpressOrder> findAllOrders();

    int countTodayOrders();

    int countOrdersByStatus(String status);

    List<ExpressOrder> findRecentOrders(int limit);

    List<ExpressOrder> findReceivedOrdersByUserId(Long userId);

    List<ExpressOrder> findSentOrdersByUserId(Long userId);
} 